package com.qidian.mes.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qidian.mes.excel.SubjectEnableStatusConverter;

import java.util.Date;

/**
 * @Author 陆雯城
 * @Description
 * @Time 2024-04-09 15:08
 */
public class Subject {
    @ExcelProperty(value = "项目ID", index = 0)
    private Long subjectId;//项目ID
    @ExcelProperty(value = "项目编码", index = 1)
    private String subjectCode;//项目编码
    @ExcelProperty(value = "项目名称", index = 2)
    private String subjectName;//项目名称
    @ExcelProperty(value = "项目类型", index = 3)
    private String subjectType;//项目类型
    @ExcelProperty(value = "项目内容", index = 4)
    private String subjectContent;//项目内容
    @ExcelProperty(value = "项目标准", index = 5)
    private String subjectStandard;//项目标准
    @ExcelProperty(value = "是否启用", index = 6, converter = SubjectEnableStatusConverter.class)
    private Integer enableStatus;//是否启用 1是 2否 3删除
    @ExcelProperty(value = "备注", index = 7)
    private String remark;//备注
    @ExcelProperty(value = "创建时间", index = 8)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;//创建时间
    @ExcelProperty(value = "修改时间", index = 9)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifyTime;//修改时间

    public Subject() {
    }

    public Subject(Long subjectId, String subjectCode, String subjectName, String subjectType, String subjectContent, String subjectStandard, Integer enableStatus, String remark, Date createTime, Date modifyTime) {
        this.subjectId = subjectId;
        this.subjectCode = subjectCode;
        this.subjectName = subjectName;
        this.subjectType = subjectType;
        this.subjectContent = subjectContent;
        this.subjectStandard = subjectStandard;
        this.enableStatus = enableStatus;
        this.remark = remark;
        this.createTime = createTime;
        this.modifyTime = modifyTime;
    }

    public Long getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Long subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectCode() {
        return subjectCode;
    }

    public void setSubjectCode(String subjectCode) {
        this.subjectCode = subjectCode;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public String getSubjectType() {
        return subjectType;
    }

    public void setSubjectType(String subjectType) {
        this.subjectType = subjectType;
    }

    public String getSubjectContent() {
        return subjectContent;
    }

    public void setSubjectContent(String subjectContent) {
        this.subjectContent = subjectContent;
    }

    public String getSubjectStandard() {
        return subjectStandard;
    }

    public void setSubjectStandard(String subjectStandard) {
        this.subjectStandard = subjectStandard;
    }

    public Integer getEnableStatus() {
        return enableStatus;
    }

    public void setEnableStatus(Integer enableStatus) {
        this.enableStatus = enableStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        return "Subject{" +
                "subjectId=" + subjectId +
                ", subjectCode='" + subjectCode + '\'' +
                ", subjectName='" + subjectName + '\'' +
                ", subjectType='" + subjectType + '\'' +
                ", subjectContent='" + subjectContent + '\'' +
                ", subjectStandard='" + subjectStandard + '\'' +
                ", enableStatus=" + enableStatus +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }
}
